package com.lax.advertserver.exception;

public class AdsException extends PlatformException {

    private static final long serialVersionUID = 1L;

    /**
     * 创建异常
     *
     * @param exprInfo
     * @return
     */
    public static AdsException instance(AdsExprInfo exprInfo, String... paramData) {
        return new AdsException(exprInfo.getCode(), buildMsg(exprInfo.getMsg(), paramData));
    }

    public AdsException(String code, String msg) {
        super(code, msg);
    }

}
